package com.py.credit.service;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import com.py.credit.entity.ColumnAndCal;
import com.py.credit.entity.Index;
import com.py.framework.core.common.Page;

public interface IndexService {
	public void insertIndex(Index index);

	public Index selectIndexById(String id, String name, String type, String mainType);

	public void updateIndexById(Index index);

	public void deleteIndexById(List<String> id);

	public void deleteIndexAndCatgoryById(List<String> list);

	public Integer indexDelCheck(List<String> list);

	public List<Index> getIndexForPage(String type, String mainType, String name, Page page);

	public List<Integer> selectRelateSourceById(List<String> list);

	public List<LinkedHashMap> selectTreeFromIndex(String mainType, String name);

	public List<LinkedHashMap<String, Object>> getByConditionForPage(String type, String mainType, String name,
			String status, List<String> showColumns, String[] additionalColumns, String condition, Page page);

	public List<Map<String, Object>> searchFinance(String pdId);

	public void saveFinanceData(String pgId);

	public List<ColumnAndCal> selectCalFormulaBycolName(String colNameEN);

	public void editStatusById(String id);

	public void updateStatusBymodelId(String status, String modelId);

	public String selectDataBycolmunEN(String colmunEN, String pgId);

	public List<LinkedHashMap<String, Object>> searchFinanceIndexData(String pgId);

	public String getTybmById(String userId);

	public List<Map<String, String>> selectModelBindIndex(String id, Page page);

}
